DiagramElementParam

StockSharp.Diagram

O parâmetro do elemento diagrama.

Herda de: NotifiableObject

Implementa: IDiagramElementParam, IAsyncPersistable, INotifyPropertyChanging, INotifyPropertyChanged, IAttributesEntity, IHandledDiagramElementParam

Propriedades

Attributes
public IList<Attribute> Attributes { get; }
value = diagramElementParam.Attributes

Atributos.

CanChangeValue
public bool CanChangeValue { get; set; }
value = diagramElementParam.CanChangeValue
diagramElementParam.CanChangeValue = value

Pode mudar de valor.

CanOptimize
public bool CanOptimize { get; set; }
value = diagramElementParam.CanOptimize
diagramElementParam.CanOptimize = value

Verificar pode otimizar o parâmetro.

IgnoreOnSave
public bool IgnoreOnSave { get; set; }
value = diagramElementParam.IgnoreOnSave
diagramElementParam.IgnoreOnSave = value

Ignorar ao salvar.

IsDefault
public bool IsDefault { get; }
value = diagramElementParam.IsDefault

O valor padrão é especificado.

LoadHandler
public Func<SettingsStorage, CancellationToken, ValueTask<T>> LoadHandler { get; set; }
value = diagramElementParam.LoadHandler
diagramElementParam.LoadHandler = value

O parâmetro valor de carregamento manipulador.

Name
public string Name { get; set; }
value = diagramElementParam.Name
diagramElementParam.Name = value

Nome.

NotifyOnChanged
public bool NotifyOnChanged { get; set; }
value = diagramElementParam.NotifyOnChanged
diagramElementParam.NotifyOnChanged = value

Levantar o evento alterado quando a propriedade é alterada.

SaveHandler
public Func<T, CancellationToken, ValueTask<SettingsStorage>> SaveHandler { get; set; }
value = diagramElementParam.SaveHandler
diagramElementParam.SaveHandler = value

O parâmetro valor de salvamento do manipulador.

Type
public Type Type { get; }
value = diagramElementParam.Type

O tipo do valor do parâmetro.

Value
public virtual T Value { get; set; }
value = diagramElementParam.Value
diagramElementParam.Value = value

O valor do parâmetro.

ValueValidating
public Func<T, T, bool> ValueValidating { get; set; }
value = diagramElementParam.ValueValidating
diagramElementParam.ValueValidating = value

Validar o valor do parâmetro.

Métodos

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramElementParam.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramElementParam.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

SetBasic
public DiagramElementParam<T> SetBasic(bool isBasic)
result = diagramElementParam.SetBasic(isBasic)

Para definir o atributo BasicSettingAttribute para o parâmetro elemento diagrama.

isBasic
É parâmetro básico.

Retorna: O parâmetro do elemento diagrama.

SetCanOptimize
public DiagramElementParam<T> SetCanOptimize(bool value)
result = diagramElementParam.SetCanOptimize(value)

Para modificar CanOptimize.

value
Valor.

Retorna: O parâmetro do elemento diagrama.

SetDisplay
public DiagramElementParam<T> SetDisplay(string groupName, string displayName, string description, int order)
result = diagramElementParam.SetDisplay(groupName, displayName, description, order)

Para definir o atributo DisplayAttribute para o parâmetro elemento diagrama.

groupName
A categoria do parâmetro do elemento diagrama.
displayName
O nome do ecrã.
description
A descrição do parâmetro do elemento diagrama.
order
A ordem de propriedade.

Retorna: O parâmetro do elemento diagrama.

SetEditor``1
public DiagramElementParam<T> SetEditor<TEditor>(TEditor editor)
result = diagramElementParam.SetEditor(editor)

Para adicionar o atributo Atributo para o parâmetro elemento diagrama.

editor
Atributo.

Retorna: O parâmetro do elemento diagrama.

SetExpandable
public DiagramElementParam<T> SetExpandable(bool expandable)
result = diagramElementParam.SetExpandable(expandable)

Para definir o atributo ExpandableObjectConverter para o parâmetro elemento diagrama.

expandable
Valor.

Retorna: O parâmetro do elemento diagrama.

SetNonBrowsable
public DiagramElementParam<T> SetNonBrowsable(bool nonBrowsable)
result = diagramElementParam.SetNonBrowsable(nonBrowsable)

Para definir o atributo BrowsableAttribute para o parâmetro elemento diagrama.

nonBrowsable
Parâmetro oculto.

Retorna: O parâmetro do elemento diagrama.

SetReadOnly
public DiagramElementParam<T> SetReadOnly(bool readOnly)
result = diagramElementParam.SetReadOnly(readOnly)

Para definir o atributo ReadOnlyAttribute para o parâmetro elemento diagrama.

readOnly
Só para leitura.

Retorna: O parâmetro do elemento diagrama.

SetRequired
public DiagramElementParam<T> SetRequired(bool required)
result = diagramElementParam.SetRequired(required)

Set RequiredAttribute: the parameter cannot be left without a value.

required
Whether the parameter is required.

Retorna: The parameter.

SetValueWithIgnoreOnSave
public void SetValueWithIgnoreOnSave(object value)
diagramElementParam.SetValueWithIgnoreOnSave(value)

Define o valor e ignore- o ao salvar as configurações.

value
Valor.
ToString
public override string ToString()
result = diagramElementParam.ToString()

Converter para uma representação de linha.

Retorna: Desempenho de cordas.

Eventos

ValueChanged
public event Action<T> ValueChanged
diagramElementParam.ValueChanged += handler

O parâmetro valor do evento de mudança.

ValueChanging
public event Action<T, T> ValueChanging
diagramElementParam.ValueChanging += handler

O valor do parâmetro alterar o evento inicial.